<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<link href="css/adminstyle.css" rel="stylesheet" type="text/css">
		<link rel="stylesheet" href="css/common.css" type="text/css" />
		<link href="css/ui-lightness/jquery-ui-1.10.3.custom.min.css" rel="stylesheet" type="text/css">
		<script  language="javascript" type="text/javascript" src="js/jquery-1.9.1.min.js"></script>
		<script  language="javascript" type="text/javascript"src="js/jquery-ui-1.10.3.custom.min.js"></script>      
        <title> 管理区域 </title>
    </head>
    <script>
$(function() {		
	$( "#tabs" ).tabs();
});
</script>
    <body>
    <div id="man_zone">
    <div id="tabs">
	 <ul>
		<li><a href="#tabs-1">个人信息</a></li>
		<li><a href="#tabs-2">预约信息</a></li>
		<li><a href="#tabs-3">订单信息</a></li>
		<li><a href="#tabs-4">积分信息</a></li>
		<li><a href="#tabs-5">站内信信息</a></li>
	 </ul>
	 <div style="background-color:#FFFFFF ">
	 <div id="tabs-1">
      <table width="98%" border="0" align="center" cellpadding="3" cellspacing="1" class="tableborder">
                <tr bgcolor="#ffffff">
                <td colspan="3">个人信息</td>
                <td colspan="3" align="right"><input name="" type="button" class="PublicBot" value="修改" onclick="location.href='user_add.html?id=<?=$id?>'"/></td>
                </tr>
                <tr bgcolor="#ffffff">
                    <td width="10%" class="left_title_2adminssd">英文名</td>
                    <td width="24%"> <?=$english_name?></td>
                    <td width="7%" class="left_title_2adminssd">      email </td>
                    <td width="26%">   <?=$email?>   </td>
                    <td class="left_title_2adminssd">
                       英语级别
                    </td>   
                    <td> <?=$level_name?></td>                              
                </tr>
                <tr bgcolor="#ffffff">
                    <td class="left_title_2adminssd">电话</td>
                    <td><?=$phone?>    </td>
                    <td class="left_title_2adminssd">qq</td>
                    <td><?=$qq?>    </td>
                    <td class="left_title_2adminssd">
                        skype
                    </td>
                    <td>
                        <?=$skype_id?>
                    </td>
        		</tr>
                <tr bgcolor="#ffffff">
                    <td class="left_title_2adminssd">积分</td>
                    <td><?=$integral?></td>                    
                    <td class="left_title_2adminssd">
                        性别
                    </td>
                    <td>
                        <?=$sex?>
                    </td>
                    <td class="left_title_2adminssd">
                    邮编</td>
                    <td>   <?=$zipcode?>    </td>                    
                </tr>
                <tr bgcolor="#ffffff">
                    <td class="left_title_2adminssd">
                        省份
                    </td>
                    <td>
                        <?=$province_name?>
                    </td>
                    <td class="left_title_2adminssd">
                        城市
                    </td>
                    <td>
                        <?=$city_name?>
                    </td>
                    <td class="left_title_2adminssd"> 地址</td>
                    <td><?=$address?></td>
                </tr>
                <tr bgcolor="#ffffff">
                    <td class="left_title_2adminssd">
                        注册时间
                    </td>
                    <td><?=date('Y-m-d H:i',$register_time)?>  </td>
                    <td width="7%" class="left_title_2adminssd">
                        推荐人ID
                    </td>
                    <td width="26%"><?if($user_id>0){?><a href="user_info.php?id=<?=$user_id?>"><?=$recommend_user_name?></a><?}?></td>                    
                    <td class="left_title_2adminssd"> 注册来源</td>
                    <td>    <?=$lead_source_name?></td>
                </tr>
                <tr bgcolor="#ffffff">
                <td colspan="6">账户信息</td>
                </tr>
                <tr bgcolor="#ffffff">
                    <td class="left_title_2adminssd">
					用户余额
                    </td>
                    <td><?=$user_moeny?></td>
                    <td width="7%" class="left_title_2adminssd">
                        体验课时
                    </td>
                     <td><?=$user_experience_class?></td>
                    <td width="7%" class="left_title_2adminssd">
	                    次卡课时
                    </td>
                    <td><?=$user_class?><?if($class_period_validity>0){?> 到期日为:<?=page_date_His($class_period_validity)?><?}?></td>
                </tr>
                <tr bgcolor="#ffffff">
                    <td width="7%" class="left_title_2adminssd">
	                                       包月课时
                    </td>
                     <td colspan="1"><?=$user_monthly_class?><?if($user_monthly_class>0){?> 到期日为:<?=page_date_His($monthly_class_period_validity)?><?}?></td>
                    <td width="7%" class="left_title_2adminssd">
	                                         用户类型
                    </td>
                     <td colspan="1"><?=$user_type_name?></td>
                    <td width="7%" class="left_title_2adminssd">
	                                        用户状态                         
                    </td>
                     <td colspan="1"><?=$status_name?></td>
                </tr>
	  </table>	
	  </div>
	  <div id="tabs-2"> 	   
     <table width="98%" border="0" align="center" cellpadding="3" cellspacing="1" class="tableborder">
	            <tr bgcolor="#ffffff">
		            <td colspan="3">预约记录(最近5条)</td>
		            <td colspan="6" align="right"><input name="" type="button" class="PublicBot" value="查看详细" onclick="location.href='BookCourse_lists.html'"/></td>
	            </tr>                
	           <tr class="left_title_2adminssd">
	           <td>上课类型</td>
	           <td>预约时间</td>
	           <td>上课状态</td>
	           <td>学生状态</td>
	           <td>上课方式</td>
	           <td>课程类型</td>
	           <td>课程名称</td>
	           <td>课堂状态</td>
	           <td>操作</td>
	           </tr> 
	           <?
	           foreach  ($book as $v){
			   ?>
	           <tr bgcolor="#ffffff"s>
	           	<td><?=$v['book_type']?></td>
	           	<td><?=date('Y-m-d',$v['book_date'])?> <?=$v['book_time']?></td>
	            <td><?=$v['teacher_status_name']?></td>
	            <td> <?=$v['user_status_name']?></td>
	            <td> <?=$v['communication_tools_name']?></td>
	            <td> <?=getStr($v,'course_type_name')?></td>
	            <td> <?=getLangStr($v['chapter_name'],$_SESSION['admin']['default_lang'])?></td>
	            <td> <?=$v['class_status_name']?></td>
	            <td><a href ="bookCourse_info.html?id=<?=$v['id']?>" target="_blank">处理</a></td>
	           </tr>
	           <?
			  	 }
			   ?>
      </table>
	   </div>
	  <div id="tabs-3"> 	   
       <table width="98%" border="0" align="center" cellpadding="3" cellspacing="1"      class="tableborder">
	            <tr bgcolor="#ffffff">
		            <td colspan="3">订单记录(最近5条)</td>
		            <td colspan="8" align="right"><input name="" type="button" class="PublicBot" value="查看详细" onclick="location.href='order_lists.html'"/></td>
	            </tr>             
                <tr class="header">                   
                    <td>订单号</td>
                    <td>订单状态</td>                   
					<td>订单时间</td>
					<td>支付方式</td>
					<td>支付状态</td>
					<td>订单内容</td>
					<td>订单金额</td>
					<td>优惠方式</td>
					<td>优惠金额</td>
					<td>应付金额</td>
					<td>操作</td>
                </tr>
                <? foreach($order['list'] as $v){ ?>
                    <tr bgcolor="#FFFFFF">
                        <td align="center">
                            <a href="order_info.html?id=<?=$v['id']?>"> <?=$v['order_no']?>   </a>
                        </td>
                        <td align="center"><?=$v['order_status']?> </td>
                        <td align="center"><?=date('Y-m-d',$v['add_time'])?></td>
                        <td align="center"> <?=$v['pay_type_name']?></td>
                        <td align="center"> <?=$v['pay_status_name']?></td>
                        <td align="center">
                           <? $tmp=array(); foreach($v['product_id'] as $v1){?>
                                <?=$order['productList'][$v1]?>
                                    <br>
                                    <? } ?>
                        </td>
                        <td align="center"> <?=number_format($v['order_amount'],2)?></td>
                        <td align="center"> <?=getStr($v,'preferential')?>    </td>
                        <td align="center"><?=getStr($v,'preferentialMoney')?>        </td>
                        <td align="center">
                            <?=number_format($v['order_amount']-$v['user_money']-$v[ 'discount_money']-$v['ticket_money'],2)?>
                        </td>
                        <td align="center">
                            <a href="Order_info.html?id=<?=$v['id']?>" target="_blank">        处理              </a>
                        </td>
                    </tr>
                    <? } ?>
            </table>
         </div>
         <div id="tabs-4">   
           <table width="98%" border="0" align="center" cellpadding="3" cellspacing="1"      class="tableborder">
	            <tr bgcolor="#ffffff">
		            <td colspan="1">积分兑换记录(最近5条)</td>
		            <td colspan="2" align="right"><input name="" type="button" class="PublicBot" value="查看详细" onclick="location.href='order_lists.html'"/></td>
	            </tr>             
			  <tr class="header">
			    <td>用途</td>
			    <td>支出</td>
			    <td>日期</td>
			  </tr>
			  <?
			  foreach($integralLog as $v){
			  ?>
			    <tr bgcolor="#ffffff">
			    <td bgcolor="#FFFFFF"><?=$integralType[$v['type']]?></td>
			    <td bgcolor="#FFFFFF"><?=$v['integral']?></td>
			    <td bgcolor="#FFFFFF"><?=date('Y-m-d',$v['time'])?></td>
			  </tr>
			  <?
			  }
			  ?>
			</table>
		   </div>	
		   <div id="tabs-5">   
		   <table width="98%" border="0" align="center" cellpadding="3" cellspacing="1"      class="tableborder">
                <tr bgcolor="#ffffff">
                <td colspan="3">站内信记录(最近5条)</td>
                <td colspan="3" align="right"><input name="" type="button" class="PublicBot" value="查看详细" onclick="location.href='LetterStation_lists.html?user_id=<?=$id?>'"/></td>
                </tr>                
                <tr class="header">
                    <td colspan="2" class="left_title_2adminssd">发送时间</td>
                    <td colspan="2" class="left_title_2adminssd">标题</td>
                    <td colspan="2" class="left_title_2adminssd">操作</td>
                </tr>
                <?foreach($leterStationList as $key=>$value){?>
                <tr bgcolor="#ffffff">
                    <td colspan="2" ><?=page_date_His($value['time'])?></td>
                    <td colspan="2" ><?=$value['title']?></td>
                    <td colspan="2"><?=$value['status_name']?></td>
                </tr>
                <?}?>
             </table>   
		   </div>
		   </div>
	 	</div>
    </div>
    </body>
</html>